package com.fcscs.ecms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.ThemeItem;
import com.fcscs.cservice.domain.Versions;
import com.fcscs.cservice.domain.model.EntityVersionView;
import com.fcscs.ecms.dao.ECMSThemeDao;
import com.fcscs.ecms.service.ECMSThemeManager;

@Service("ecmsThemeManager")
public class ECMSThemeManagerImpl implements ECMSThemeManager {

	@Autowired
	ECMSThemeDao themeDao;
	
	@Override
	public ThemeItem getThemeItem(long id) {
		return themeDao.getThemeItem(id);
	}

	@Override
	public List<ThemeItem> getThemeItemList(long orgId, long propId,boolean isCurrent) {
		return themeDao.getThemeItemList(orgId, propId, isCurrent);
	}

	@Override
	public List<ThemeItem> getThemeItemList(long orgId, long propId,long versionId) {
		return themeDao.getThemeItemList(orgId, propId, versionId);
	}

	@Override
	public List<ThemeItem> saveThemeItemList(List<ThemeItem> tiList) {
		return themeDao.saveThemeItemList(tiList);
	}

	@Override
	public ThemeItem createThemeItem(ThemeItem ti) {
		return themeDao.createThemeItem(ti);
	}

	@Override
	public ThemeItem saveThemeItem(ThemeItem ti) {
		return themeDao.saveThemeItem(ti);
	}

	@Override
	public boolean deleteThemeItem(ThemeItem ti) {
		return themeDao.deleteThemeItem(ti);
	}

	@Override
	public boolean permDeleteThemeItem(ThemeItem ti) {
		return themeDao.permDeleteThemeItem(ti);
	}

	@Override
	public boolean isThemeItemTaken(long orgId, long propId, String name,Long id, long versionId) {
		return themeDao.isThemeItemTaken(orgId, propId, name, id, versionId);
	}

	@Override
	public List<com.fcscs.cservice.domain.model.ThemeItem> getThemeItemViewList(long orgId, long propId) {
		return themeDao.getThemeItemViewList(orgId, propId);
	}

	@Override
	public boolean copyVersion(Versions fromVer, Versions toVer) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<EntityVersionView> getEntityVersionViewList(long orgId,
			long propId) {
		// TODO Auto-generated method stub
		return null;
	}

}
